<div class="page-header">
	<h1 style="display: inline;">
		Edit Choices
	</h1>
</div>

<h3>
	<?php echo $choiceQuestion['Question']['label']; ?>
	<small><?php echo $choiceQuestion['Question']['help_text']; ?></small>
</h3>

<?php echo $this->Form->create(null, array(/*'class' => 'form-horizontal'*/)); ?>
	<ul class="sortable">
		<?php foreach ($choiceQuestion['ChoiceQuestionChoice'] as $choice): ?>
			<li class="control-group controls">
				<i class="icon icon-move"></i>
				<?php echo $this->Form->text(false, array(
					'label' => false,
					'name' => 'choices[]',
					'value' => $choice['label'],
				)); ?>
				<a href="#" class="removeChoiceBtn"><i class="icon icon-remove"></i></a>
			</li>
		<?php endforeach; ?>
	</ul>

	<?php echo $this->TwitterBootstrap->button_link('<i class="icon-white icon-plus"></i> Add Choice', '#', array('style' => 'info', 'escape' => false, 'class' => 'addChoiceBtn')); ?>
	<?php echo $this->TwitterBootstrap->button('<i class="icon-white icon-ok"></i> Save Changes', array('style' => 'success', 'escape' => false)); ?>
<?php echo $this->Form->end(); ?>

